#!/bin/sh
echo $$>.spid
while true
do
        cd /home/sms/smspgateway
        nohup java -Xms64M -Xmx256M com.haoxi.gateway.main.MainSystem\$main_new_Cmcc_851 >> Cmcc_new_851.log &
        echo $!>.pid
        wait
        echo "reboot gateway on `date`"
done
